﻿#ifndef ITEMEDIT_H
#define ITEMEDIT_H

#include <QDialog>
#include <QMessageBox>
#include <QString>
#include <QSqlQuery>

#include "common/baseeditordialog.h"

namespace Ui {
class ItemEdit;
}

class ItemEdit : public BaseEditorDialog
{
    Q_OBJECT

public:
    explicit ItemEdit(QWidget *parent ,
                      const QString &table);
    ~ItemEdit();

    void save();
    void updateView();
    void generateMenu();
    void removeItem();

private:
    Ui::ItemEdit *ui;

    bool isChanged;

    QString _table;
};

#endif // ITEMEDIT_H
